<?php get_instance()->view('common/header');?>
<body style="background: #fff9e7;">
    <div class="pos wp100" style="top: 0;left: 0;">
        <div class="swiper-container" style="height: 30px;color: #ffffff">
            <div class="swiper-wrapper">
                <?php if($info['list']):?>
                    <?php foreach ($info['list'] as $v):?>
                        <div class="swiper-slide tc">
                            <?php echo $v['nickname'];?> &nbsp;&nbsp;成功邀请<?php echo $v['consumerCount']?>个好友
<!--                            ，得到--><?php //echo $v['bonusCount']?><!--个红包-->
                        </div>
                    <?php endforeach;?>
                <?php endif;?>

            </div>
        </div>
    </div>
    <img src="<?php echo $info['share_img']?>" class="wp100" alt="">
    <img src="<?php echo $info['share_step']?>" class="wp100" alt="">
    <a class="kbtn button-share" href="JavaScript:;" style="width: 60%;background: #ff6501;">点击分享领红包</a>
    <div class="wp75 m0a heng mt10">
        <div class="wpthree">
            <p class="tc"><?php echo $info['amount']?></p>
            <p class="tc f08">获得佣金(元)</p>
        </div>
        <div class="wpthree">
            <p class="tc"><?php echo $info['bonusCount']?></p>
            <p class="tc f08">累计红包(个)</p>
        </div>
        <div class="wpthree">
            <p class="tc"><?php echo $info['consumerCount']?></p>
            <p class="tc f08">成功邀请(人)</p>
        </div>
    </div>
    <div style="height: 1px;background: #ff6501;opacity: 0.2;"></div>
    <div class="fonts p3p">

        <?php echo $info['content']?>
    </div>
    <a class="kbtn button-code" href="JavaScript:;" style="width: 60%;background: #ff6501;">点击生成专属二维码分享</a>

    <div class="share jdjz" style="z-index: 2;visibility:inherit;display: none;">
        <span class="simg">
            <img src="<?php echo $this->staticUrl;?>img/png/share.png" alt="">
        </span>
        <span class="simg2">
            <img src="<?php echo $code?>">
        </span>
    </div>


</body>
<?php get_instance()->view('common/wxJssdk');?>
<script>
    WeChat();

    var mySwiper = new Swiper ('.swiper-container', {
        loop: true,
        direction: 'vertical',
        autoplay:3000,
    })
    $(".button-share").on('click',function () {
        $(".share").find('.simg2').hide();
        $(".share").find('.simg').show();
        $('.share').fadeIn(200)
    });
    $(".button-code").on('click',function () {
        $(".share").find('.simg').hide();
        $(".share").find('.simg2').show();
        $('.share').fadeIn(200)
    });
    $(".share").click(function () {
        $(this).fadeOut(200)
    })
</script>
<script src="<?php echo $this->staticUrl;?>js/base.js"></script>
</html>